package struts2.sample07.action;

import java.util.Map;

import org.apache.struts2.config.Result;

import com.opensymphony.xwork2.ActionContext;

@Result("index.jsp")
public class LogoutAction {
	
	public String execute(){
		Map httpSession = ActionContext.getContext().getSession();
		httpSession.remove("login.user");
		
		return "success";
	}

}
